export default {
  emits: ['update:visible'],
  props: {
    visible: {
      type: Boolean,
      default: false,
    },
  },
  data() {
    return {
      dialogVisible: false,
    };
  },
  watch: {
    dialogVisible(val) {
      this.$emit('update:visible', val);
    },
    visible(val) {
      this.dialogVisible = val;
      this.$emit('update:visible', val);
    },
  },
};
